home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-01 | 572 b | 28 lines | [TEXT/DWat] |
- % Get parameter guesses for two Gaussians
- % using the graph cursor
-
- hide
- fullscreen true
-
- set response yes
- ask response OK " " Click the cursor on the PEAK of GAUSSIAN #1
- moveto ?
- set a0 x
- set a2 y
- ask response OK " " Click HALF WAY DOWN THE SIDE of GAUSSIAN #1
- moveto ?
- set a1 x a0 - abs
- set a1 a1 2 ln sqrt /
-
- ask response OK " " Click the cursor on the PEAK of GAUSSIAN #2
- moveto ?
- set a3 x
- set a5 y
- ask response OK " " Click HALF WAY DOWN THE SIDE of GAUSSIAN #2
- moveto ?
- set a4 x a3 - abs
-
- % Convert Half Width at Half Max to 1/e width
- set a4 a4 2 ln sqrt /
-
- close